﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Akso.Schools.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Akso.Web.Areas.BasicDataModule.Models.Schools
{
    public class SchoolsViewModel
    {
    }
    /// <summary>
    /// 在弹出的新增、修改窗口里面，传递给页面的ViewModel对象。
    /// </summary>
    [AutoMapFrom(typeof(GetSchoolForEditOutput))]
    public class CreateOrEditSchoolModalViewModel: GetSchoolForEditOutput
    {
        public bool IsEditMode
        {
            get { return School.Id.HasValue; }
        }
        /// <summary>
        /// 部门职能列表
        /// </summary>
        public List<ComboboxItemDto> GetDeptFunctionList { get; set; }

        public CreateOrEditSchoolModalViewModel(GetSchoolForEditOutput output)
        {
            output.MapTo(this);
        }
    }
}